/*
 *   Copyright (c) 2010 Sonrisa Informatikai Kft. All Rights Reserved.
 * 
 *  This software is the confidential and proprietary information of
 *  Sonrisa Informatikai Kft. ("Confidential Information").
 *  You shall not disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Sonrisa.
 * 
 *  SONRISA MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF
 *  THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
 *  TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
 *  PARTICULAR PURPOSE, OR NON-INFRINGEMENT. SONRISA SHALL NOT BE LIABLE FOR
 *  ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
 *  DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 */

package com.zh.jbet.core.service;

import com.zh.jbet.core.entity.BaseEntity;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author sonrisa
 */
public interface EntityService<T extends BaseEntity> extends Serializable{
    public static final String TEAM_SERVICE = "TeamService";

    public int count(T filterEntity);

    public List<T> findByFilter(T filterEntity, String sort, int start, int count);

    public T save(T entity);

    public T load(Long id);

    public boolean delete(T entity);

    public T getDefaultInstance();
}
